package org.codetranslators.compiler.tiger.abssyntree;


public class SubscriptVar extends Var {
   private Var var;
   private  Exp index;
   
   public SubscriptVar(int p, Var v, Exp i) 
   {
	   pos = p; 
	   var = v; 
	   index = i;
   }
   
   public Var getBaseVar()
   {
	   return var;
   }
   
   public Exp getIndex()
   {
	   return index;
   }
}
